projects
/
project
/
bcm63xx
/
u-boot.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
44de8e2
)
Tegra114: Do not program CPCON field for PLLX
author
Thierry Reding
<
[email protected]
>
Tue, 1 Oct 2013 15:04:45 +0000
(17:04 +0200)
committer
Tom Warren
<
[email protected]
>
Wed, 18 Dec 2013 17:19:48 +0000
(10:19 -0700)
PLLX no longer has the CPCON field on Tegra114, so do not attempt to
program it.
Signed-off-by: Thierry Reding <
[email protected]
>
Signed-off-by: Tom Warren <
[email protected]
>
arch/arm/cpu/arm720t/tegra-common/cpu.c
patch
|
blob
|
history
diff --git
a/arch/arm/cpu/arm720t/tegra-common/cpu.c
b/arch/arm/cpu/arm720t/tegra-common/cpu.c
index aa1e04f599406c26af43694bded0134cbcb53e2f..72c69b914c7fe188ff86d3e26ba7ce98ade2ec49 100644
(file)
--- a/
arch/arm/cpu/arm720t/tegra-common/cpu.c
+++ b/
arch/arm/cpu/arm720t/tegra-common/cpu.c
@@
-135,6
+135,7
@@
void adjust_pllp_out_freqs(void)
int pllx_set_rate(struct clk_pll_simple *pll , u32 divn, u32 divm,
u32 divp, u32 cpcon)
{
+ int chip = tegra_get_chip();
u32 reg;
/* If PLLX is already enabled, just return */
@@
-151,7
+152,10
@@
int pllx_set_rate(struct clk_pll_simple *pll , u32 divn, u32 divm,
writel(reg, &pll->pll_base);
/* Set cpcon to PLLX_MISC */
- reg = (cpcon << PLL_CPCON_SHIFT);
+ if (chip == CHIPID_TEGRA20 || chip == CHIPID_TEGRA30)
+ reg = (cpcon << PLL_CPCON_SHIFT);
+ else
+ reg = 0;
/* Set dccon to PLLX_MISC if freq > 600MHz */
if (divn > 600)